/******************************************************************************
 *
 * Project:		mGameEngine
 * File:		sceneframe.cpp
 * Author:		karooolek
 * Created on:	2009-04-09
 *
 ******************************************************************************/

#include "sceneframe.h"

namespace mGameEngine
{
namespace Game
{

SceneFrame::SceneFrame() : _scene(NULL)
{
}

SceneFrame::SceneFrame(Scene *scene) : _scene(scene)
{
}

SceneFrame::~SceneFrame()
{
	if(_scene)
	{
		delete _scene;
	}
}

void SceneFrame::begin()
{
}

void SceneFrame::end()
{
}

void SceneFrame::idle()
{
	if(_scene)
	{
		_scene->idle();
	}
}

void SceneFrame::draw() const
{
	if(_scene)
	{
		_scene->draw();
	}
}

}
}

